<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
<style>

div{
    width: 200px; 
    height: 200px; 
    border-width: 3px;
    border-color: red; 
    font-size: 25px;
    font-weight: bold;
    color: green;
    border-style: solid;
    }
p{border : inherit}

</style>

</head>
<body>

    <div>
        <p>哈哈哈</p>
    </div>
    
</body>
</html>